home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4330 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  992 b 

  1. Path: locutus.rchland.ibm.com!usenet
  2. From: pstaite@vnet.ibm.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: help finding ranges of types
  5. Date: 29 Jan 1996 19:44:05 GMT
  6. Organization: IBM OS/2 Device Driver Development  Rochester, MN
  7. Message-ID: <4ej825$ogi@locutus.rchland.ibm.com>
  8. References: <4eiud1$r0u@geraldo.cc.utexas.edu>
  9. Reply-To: pstaite@vnet.ibm.com
  10. NNTP-Posting-Host: warpone.rchland.ibm.com
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <4eiud1$r0u@geraldo.cc.utexas.edu>, trakas@mail.utexas.edu (Travis Kaspar) writes:
  14. >I have to determine the ranges (ie allowable values) for all 
  15. >the basic types, without using sizeof(type).  I know I could increment
  16.  
  17. Try looking in limits.h -- should have definitions for the limits, 
  18. ranges, etc. for all the intrinsic types.  Besides, sizeof(float) will 
  19. probably only tell you 4, same as sizeof(long) (probably) -- yet their 
  20. characteristics are very different. ;-)
  21.  
  22.  
  23. Phil Staite, team OS/2
  24. internet: pstaite@vnet.ibm.com  internal: pstaite@rchland
  25.  
  26.